package com.zzyl.nursing.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 心率数据VO
 */
@Data
@ApiModel(description = "心率监测数据")
public class DeviceDataVo {

    @ApiModelProperty(value = "功能标识", required = true, example = "HeartRate")
    private String functionId;

    @ApiModelProperty(value = "事件时间", required = true, example = "2025-02-19T15:04:24")
    private LocalDateTime eventTime;

    @NotNull(message = "数据值不能为空")
    @ApiModelProperty(value = "数据值", required = true, example = "60")
    private String value;

//    // 可选扩展字段
//    @ApiModelProperty(value = "设备ID", example = "847XFy3JE4CcQk6SpHMHj0rk00")
//    private String deviceId;
//
//    @ApiModelProperty(value = "老人ID", example = "1")
//    private Long elderId;
}